// 通用打印模板
const commonPanel = {
  panels: [
    {
      index: 0,
      name: 1,
      paperType: 'A4',
      height: 297,
      width: 210,
      paperHeader: 0,
      paperFooter: 841.8897637795277,
      printElements: [
        {
          options: {
            left: 15,
            top: 27,
            height: 20,
            width: 200,
            textContentVerticalAlign: 'middle',
            title: '单据编号',
            field: 'WMS_Inbound_H.No',
            right: 215,
            bottom: 46.25,
            vCenter: 115,
            hCenter: 36.25
          },
          printElementType: {
            title: '单据编号',
            type: 'text'
          }
        },
        {
          options: {
            left: 237,
            top: 30,
            height: 20,
            width: 200,
            textContentVerticalAlign: 'middle',
            title: '单据日期',
            field: 'WMS_Inbound_H.BillDate'
          },
          printElementType: {
            title: '单据日期',
            type: 'text'
          }
        },
        {
          options: {
            left: 237,
            top: 70.5,
            height: 20,
            width: 200,
            textContentVerticalAlign: 'middle',
            title: '仓库',
            field: 'WMS_Inbound_H.WarehouseID',
            attributeConfig: '{"controlType":"Dict","itemKey":"WMS_Warehouse","fieldKey":"Name"}',
            formatter:
              'function(title,value,options,templateData,target){return window.hiprintFuns.GetAttributeValue(options, value)}'
          },
          printElementType: {
            title: '仓库',
            type: 'text'
          }
        },
        {
          options: {
            left: 16.5,
            top: 70.5,
            height: 20,
            width: 200,
            textContentVerticalAlign: 'middle',
            title: '单据状态',
            field: 'WMS_Inbound_H.Status'
          },
          printElementType: {
            title: '单据状态',
            type: 'text'
          }
        },
        {
          options: {
            left: 12,
            top: 117,
            height: 107,
            width: 550,
            fields: [
              {
                field: 'OID',
                text: '对象标识',
                title: '对象标识',
                attributeConfig: '{"controlType":"NumberEditor"}'
              },
              {
                field: 'SOID',
                text: '主对象标识',
                title: '主对象标识',
                attributeConfig: '{}'
              },
              {
                field: 'POID',
                text: '父对象标识',
                title: '父对象标识',
                attributeConfig: '{}'
              },
              {
                field: 'VERID',
                text: '对象版本',
                title: '对象版本',
                attributeConfig: '{}'
              },
              {
                field: 'DVERID',
                text: '对象明细版本',
                title: '对象明细版本',
                attributeConfig: '{}'
              },
              {
                field: 'Sequence',
                text: '序号',
                title: '序号',
                attributeConfig: '{}'
              },
              {
                field: 'WaresID',
                text: '货品',
                title: '货品',
                attributeConfig: '{"controlType":"Dict","itemKey":"WMS_Wares"}'
              },
              {
                field: 'Qty',
                text: '数量',
                title: '数量',
                attributeConfig: '{"controlType":"NumberEditor"}'
              },
              {
                field: 'Unit',
                text: '单位',
                title: '单位',
                attributeConfig: '{"controlType":"ComboBox","ComboBoxItems":[]}'
              },
              {
                field: 'UnitQty',
                text: '基本单位数量',
                title: '基本单位数量',
                attributeConfig: '{"controlType":"NumberEditor"}'
              },
              {
                field: 'WaresStatusID',
                text: '货品状态',
                title: '货品状态',
                attributeConfig: '{"controlType":"Dict","itemKey":"WMS_WaresStatus"}'
              },
              {
                field: 'HandleStatus',
                text: '货品处理状态',
                title: '货品处理状态',
                attributeConfig: '{}'
              },
              {
                field: 'ActiveOID',
                text: '活动对象标识',
                title: '活动对象标识',
                attributeConfig: '{"controlType":"NumberEditor"}'
              },
              {
                field: 'StockAttributeRecordID',
                text: '货品库存属性记录ID',
                title: '货品库存属性记录ID',
                attributeConfig: '{"controlType":"TextEditor"}'
              },
              {
                field: 'Manufacturer',
                text: '生产厂家',
                title: '生产厂家',
                attributeConfig: '{"controlType":"TextEditor"}'
              },
              {
                field: 'IsKit',
                text: '是否是套件',
                title: '是否是套件',
                attributeConfig:
                  '{"controlType":"ComboBox","ComboBoxItems":[{"Value":"1","Key":"1","Caption":"非套件"},{"Value":"2","Key":"2","Caption":"套件"}]}'
              },
              {
                field: 'IndustryCode',
                text: '行业编码',
                title: '行业编码',
                attributeConfig: '{"controlType":"TextEditor"}'
              },
              {
                field: 'Brand',
                text: '品牌',
                title: '品牌',
                attributeConfig: '{"controlType":"Dict","itemKey":"WMS_Brand"}'
              },
              {
                field: 'Specification',
                text: '规格描述',
                title: '规格描述',
                attributeConfig: '{"controlType":"TextEditor"}'
              },
              {
                field: 'WaresTransactionMode',
                text: '货品交易类型',
                title: '货品交易类型',
                attributeConfig:
                  '{"controlType":"ComboBox","ComboBoxItems":[{"Value":"0","Key":"0","Caption":"现货"},{"Value":"1","Key":"1","Caption":"期货"}]}'
              },
              {
                field: 'StockUnit',
                text: '基本库存单位',
                title: '基本库存单位',
                attributeConfig: '{"controlType":"Dict","itemKey":"WMS_InventoryUnit"}'
              },
              {
                field: 'Length',
                text: '长（cm）',
                title: '长（cm）',
                attributeConfig: '{"controlType":"NumberEditor"}'
              },
              {
                field: 'Expiration',
                text: '效期数',
                title: '效期数',
                attributeConfig: '{"controlType":"NumberEditor"}'
              },
              {
                field: 'ExpirationUnit',
                text: '效期单位',
                title: '效期单位',
                attributeConfig:
                  '{"controlType":"ComboBox","ComboBoxItems":[{"Value":"Year","Key":"Year","Caption":"年"},{"Value":"Month","Key":"Month","Caption":"月"},{"Value":"Day","Key":"Day","Caption":"日"},{"Value":"Hour","Key":"Hour","Caption":"时"},{"Value":"Minutes","Key":"Minutes","Caption":"分"},{"Value":"Seconds","Key":"Seconds","Caption":"秒"}]}'
              }
            ],
            field: 'WMS_Inbound_D_Wares',
            title: '货品信息',
            qid: 'WMS_4',
            right: 561.25,
            bottom: 224,
            vCenter: 286.25,
            hCenter: 170.5,
            columns: [
              [
                {
                  width: 55,
                  title: '序号',
                  attributeConfig: '{}',
                  field: 'Sequence',
                  checked: true,
                  columnId: 'Sequence',
                  fixed: false,
                  rowspan: 1,
                  colspan: 1
                },
                {
                  width: 55,
                  title: '货品',
                  attributeConfig: '{"controlType":"Dict","itemKey":"WMS_Wares","fieldKey":"Name"}',
                  field: 'WaresID',
                  checked: true,
                  columnId: 'WaresID',
                  fixed: false,
                  rowspan: 1,
                  colspan: 1,
                  formatter2:
                    'function(value,row,index,options){ return window.hiprintFuns.GetAttributeValue(options, value, index) }'
                },
                {
                  width: 55,
                  title: '数量',
                  attributeConfig: '{"controlType":"NumberEditor"}',
                  field: 'Qty',
                  checked: true,
                  columnId: 'Qty',
                  fixed: false,
                  rowspan: 1,
                  colspan: 1
                },
                {
                  width: 55,
                  title: '单位',
                  attributeConfig: '{"controlType":"ComboBox","ComboBoxItems":[]}',
                  field: 'Unit',
                  checked: true,
                  columnId: 'Unit',
                  fixed: false,
                  rowspan: 1,
                  colspan: 1
                },
                {
                  width: 55,
                  title: '货品状态',
                  attributeConfig: '{"controlType":"Dict","itemKey":"WMS_WaresStatus"}',
                  field: 'WaresStatusID',
                  checked: true,
                  columnId: 'WaresStatusID',
                  fixed: false,
                  rowspan: 1,
                  colspan: 1
                },
                {
                  width: 55,
                  title: '生产厂家',
                  attributeConfig: '{"controlType":"TextEditor"}',
                  field: 'Manufacturer',
                  checked: true,
                  columnId: 'Manufacturer',
                  fixed: false,
                  rowspan: 1,
                  colspan: 1
                },
                {
                  width: 55,
                  title: '行业编码',
                  attributeConfig: '{"controlType":"TextEditor"}',
                  field: 'IndustryCode',
                  checked: true,
                  columnId: 'IndustryCode',
                  fixed: false,
                  rowspan: 1,
                  colspan: 1
                },
                {
                  width: 55,
                  title: '品牌',
                  attributeConfig: '{"controlType":"Dict","itemKey":"WMS_Brand"}',
                  field: 'Brand',
                  checked: true,
                  columnId: 'Brand',
                  fixed: false,
                  rowspan: 1,
                  colspan: 1
                },
                {
                  width: 55,
                  title: '规格描述',
                  attributeConfig: '{"controlType":"TextEditor"}',
                  field: 'Specification',
                  checked: true,
                  columnId: 'Specification',
                  fixed: false,
                  rowspan: 1,
                  colspan: 1
                },
                {
                  width: 55,
                  title: '货品交易类型',
                  attributeConfig:
                    '{"controlType":"ComboBox","ComboBoxItems":[{"Value":"0","Key":"0","Caption":"现货"},{"Value":"1","Key":"1","Caption":"期货"}]}',
                  field: 'WaresTransactionMode',
                  checked: true,
                  columnId: 'WaresTransactionMode',
                  fixed: false,
                  rowspan: 1,
                  colspan: 1
                }
              ]
            ]
          },
          printElementType: {
            title: '货品信息',
            type: 'table',
            editable: true,
            columnDisplayEditable: true,
            columnDisplayIndexEditable: true,
            columnTitleEditable: true,
            columnResizable: true,
            columnAlignEditable: true,
            isEnableEditField: true,
            isEnableContextMenu: true,
            isEnableInsertRow: true,
            isEnableDeleteRow: true,
            isEnableInsertColumn: true,
            isEnableDeleteColumn: true,
            isEnableMergeCell: true
          }
        }
      ],
      paperNumberContinue: true,
      watermarkOptions: {},
      panelLayoutOptions: {}
    }
  ]
}
// 单个明细表、主表合并-》表单打印模板-批量多个
const detailFormPanel = {
  panels: [
    {
      paperHeader: 0,
      paperType: 'A4',
      watermarkOptions: {},
      printElements: [
        {
          printElementType: {
            title: '文本',
            type: 'text'
          },
          options: {
            textAlign: 'center',
            coordinateSync: false,
            letterSpacing: 3,
            textContentVerticalAlign: 'middle',
            title: '入库单',
            qrCodeLevel: 0,
            top: 7.5,
            left: 259.5,
            width: 120,
            fontSize: 18,
            widthHeightSync: false,
            fontWeight: '700',
            height: 30
          }
        },
        {
          printElementType: {
            title: '横线',
            type: 'hline'
          },
          options: {
            hCenter: 38.230740180382355,
            top: 36,
            left: 229.5,
            borderWidth: '0.75',
            bottom: 40.230740180382355,
            width: 180,
            coordinateSync: false,
            widthHeightSync: false,
            right: 409.9615243765024,
            vCenter: 319.9615243765024,
            height: 4
          }
        },
        {
          printElementType: {
            title: '单据日期',
            type: 'text'
          },
          options: {
            hCenter: 32.076922196608315,
            bottom: 39.576922196608315,
            coordinateSync: false,
            textContentVerticalAlign: 'middle',
            right: 319.4999577448918,
            title: '交验日期',
            qrCodeLevel: 0,
            qid: 'WMS_21',
            attributeConfig: '{"controlType":"DatePicker"}',
            formatter:
              'function(title,value,options,templateData,target){return window.hiprintFuns.GetAttributeValue(options, value)}',
            top: 40.5,
            field: 'WMS_Inbound_H.BillDate',
            left: 249,
            width: 120,
            widthHeightSync: false,
            vCenter: 259.4999577448918,
            height: 15
          }
        },
        {
          printElementType: {
            title: '单据日期',
            type: 'text'
          },
          options: {
            hCenter: 47.538453615628754,
            bottom: 55.038453615628754,
            coordinateSync: false,
            textContentVerticalAlign: 'middle',
            right: 320.0768808218149,
            title: '入库日期',
            qrCodeLevel: 0,
            qid: 'WMS_23',
            attributeConfig: '{"controlType":"DatePicker"}',
            formatter:
              'function(title,value,options,templateData,target){return window.hiprintFuns.GetAttributeValue(options, value)}',
            top: 55.5,
            field: 'WMS_Inbound_H.BillDate',
            left: 249,
            width: 120,
            widthHeightSync: false,
            vCenter: 260.0768808218149,
            height: 15
          }
        },
        {
          printElementType: {
            title: '供应商',
            type: 'text'
          },
          options: {
            hCenter: 46.38460746178259,
            bottom: 53.88460746178259,
            coordinateSync: false,
            textContentVerticalAlign: 'middle',
            right: 175.500007042518,
            title: '供应商',
            qrCodeLevel: 0,
            qid: 'WMS_22',
            attributeConfig: '{"controlType":"Dict","itemKey":"WMS_Supplier"}',
            formatter:
              'function(title,value,options,templateData,target){return window.hiprintFuns.GetAttributeValue(options, value)}',
            top: 55.5,
            field: 'WMS_Inbound_H.SupplierID',
            left: 55.5,
            width: 120,
            widthHeightSync: false,
            vCenter: 115.500007042518,
            height: 15
          }
        },
        {
          printElementType: {
            title: '文本',
            type: 'text'
          },
          options: {
            hCenter: 67.5769204359788,
            textAlign: 'center',
            bottom: 77.5769204359788,
            coordinateSync: false,
            textContentVerticalAlign: 'middle',
            right: 283.8076782226562,
            title: '产品图号',
            qrCodeLevel: 0,
            borderTop: 'solid',
            borderLeft: 'solid',
            top: 70.5,
            left: 243,
            width: 70,
            widthHeightSync: false,
            vCenter: 248.8076782226562,
            height: 20
          }
        },
        {
          printElementType: {
            title: '文本',
            type: 'text'
          },
          options: {
            hCenter: 65.89706420898435,
            textAlign: 'center',
            bottom: 75.89706420898435,
            coordinateSync: false,
            textContentVerticalAlign: 'middle',
            right: 203.470593620749,
            title: '名称',
            qrCodeLevel: 0,
            borderTop: 'solid',
            borderLeft: 'solid',
            top: 70.5,
            left: 312,
            width: 60,
            widthHeightSync: false,
            vCenter: 173.470593620749,
            height: 20
          }
        },
        {
          printElementType: {
            title: '文本',
            type: 'text'
          },
          options: {
            hCenter: 65.89706420898435,
            textAlign: 'center',
            bottom: 75.89706420898435,
            coordinateSync: false,
            textContentVerticalAlign: 'middle',
            right: 203.470593620749,
            title: '材料牌号',
            qrCodeLevel: 0,
            borderTop: 'solid',
            borderLeft: 'solid',
            top: 70.5,
            left: 372,
            width: 60,
            widthHeightSync: false,
            vCenter: 173.470593620749,
            height: 20
          }
        },
        {
          printElementType: {
            title: '文本',
            type: 'text'
          },
          options: {
            hCenter: 65.89706420898435,
            textAlign: 'center',
            bottom: 75.89706420898435,
            coordinateSync: false,
            textContentVerticalAlign: 'middle',
            right: 203.470593620749,
            title: '自制对象',
            qrCodeLevel: 0,
            borderTop: 'solid',
            borderLeft: 'solid',
            top: 70.5,
            left: 174,
            width: 70,
            widthHeightSync: false,
            vCenter: 173.470593620749,
            height: 20
          }
        },
        {
          printElementType: {
            title: '文本',
            type: 'text'
          },
          options: {
            hCenter: 159.64706420898432,
            textAlign: 'center',
            bottom: 169.64706420898432,
            coordinateSync: false,
            textContentVerticalAlign: 'middle',
            right: 517.3676255170035,
            title: '规格',
            qrCodeLevel: 0,
            borderTop: 'solid',
            borderLeft: 'solid',
            top: 70.5,
            left: 432,
            width: 60,
            widthHeightSync: false,
            vCenter: 487.36762551700355,
            height: 20
          }
        },
        {
          printElementType: {
            title: '单据编号',
            type: 'text'
          },
          options: {
            hCenter: 69.99999999999997,
            bottom: 79.99999999999997,
            coordinateSync: false,
            textContentVerticalAlign: 'middle',
            right: 145.20454753528938,
            title: '单据编号',
            qrCodeLevel: 0,
            qid: 'WMS_3',
            borderTop: 'solid',
            attributeConfig: '{"controlType":"TextEditor"}',
            formatter:
              'function(title,value,options,templateData,target){return window.hiprintFuns.GetAttributeValue(options, value)}',
            borderLeft: 'solid',
            top: 70.5,
            field: 'WMS_Inbound_H.No',
            hideTitle: true,
            left: 105,
            width: 70,
            widthHeightSync: false,
            vCenter: 110.20454753528938,
            height: 20
          }
        },
        {
          printElementType: {
            title: '文本',
            type: 'text'
          },
          options: {
            hCenter: 191.19117849013378,
            textAlign: 'center',
            bottom: 201.19117849013378,
            coordinateSync: false,
            textContentVerticalAlign: 'middle',
            right: 318.1323421702665,
            title: '状态',
            qrCodeLevel: 0,
            borderTop: 'solid',
            borderLeft: 'solid',
            top: 70.5,
            left: 492,
            borderRight: 'solid',
            width: 60,
            widthHeightSync: false,
            vCenter: 288.1323421702665,
            height: 20
          }
        },
        {
          printElementType: {
            title: '文本',
            type: 'text'
          },
          options: {
            hCenter: 5.840915333140984,
            textAlign: 'center',
            bottom: 15.840915333140984,
            coordinateSync: false,
            textContentVerticalAlign: 'middle',
            right: 50.79545454545455,
            title: '合同号',
            qrCodeLevel: 0,
            borderTop: 'solid',
            borderLeft: 'solid',
            top: 70.5,
            left: 45,
            width: 60,
            widthHeightSync: false,
            vCenter: 20.795454545454547,
            height: 20
          }
        },
        {
          printElementType: {
            title: '单据编号',
            type: 'text'
          },
          options: {
            hCenter: 111.38235294117644,
            bottom: 124.38235294117644,
            coordinateSync: false,
            textContentVerticalAlign: 'middle',
            right: 295.2647018432616,
            title: '单据编号',
            qrCodeLevel: 0,
            qid: 'WMS_12',
            borderTop: 'solid',
            attributeConfig: '{"controlType":"TextEditor"}',
            formatter:
              'function(title,value,options,templateData,target){return window.hiprintFuns.GetAttributeValue(options, value)}',
            borderLeft: 'solid',
            top: 90,
            field: 'WMS_Inbound_H.No',
            hideTitle: true,
            left: 243,
            width: 70,
            widthHeightSync: false,
            vCenter: 260.2647018432616,
            height: 26
          }
        },
        {
          printElementType: {
            title: '单据编号',
            type: 'text'
          },
          options: {
            hCenter: 134.76470049689794,
            bottom: 144.76470049689794,
            coordinateSync: false,
            textContentVerticalAlign: 'middle',
            right: 259.7058890847598,
            title: '单据编号',
            qrCodeLevel: 0,
            qid: 'WMS_10',
            borderTop: 'solid',
            attributeConfig: '{"controlType":"TextEditor"}',
            formatter:
              'function(title,value,options,templateData,target){return window.hiprintFuns.GetAttributeValue(options, value)}',
            borderLeft: 'solid',
            top: 90,
            field: 'WMS_Inbound_H.No',
            hideTitle: true,
            left: 174,
            width: 70,
            widthHeightSync: false,
            vCenter: 224.7058890847598,
            height: 26
          }
        },
        {
          printElementType: {
            title: '单据编号',
            type: 'text'
          },
          options: {
            hCenter: 171.55883430032165,
            bottom: 184.55883430032165,
            coordinateSync: false,
            textContentVerticalAlign: 'middle',
            right: 283.14706016989305,
            title: '单据编号',
            qrCodeLevel: 0,
            qid: 'WMS_11',
            borderTop: 'solid',
            attributeConfig: '{"controlType":"TextEditor"}',
            formatter:
              'function(title,value,options,templateData,target){return window.hiprintFuns.GetAttributeValue(options, value)}',
            borderLeft: 'solid',
            top: 90,
            field: 'WMS_Inbound_H.No',
            hideTitle: true,
            left: 312,
            width: 60,
            widthHeightSync: false,
            vCenter: 253.14706016989305,
            height: 26
          }
        },
        {
          printElementType: {
            title: '单据编号',
            type: 'text'
          },
          options: {
            hCenter: 87.3863636363636,
            bottom: 97.3863636363636,
            coordinateSync: false,
            textContentVerticalAlign: 'middle',
            right: 143.77272519198328,
            title: '单据编号',
            qrCodeLevel: 0,
            qid: 'WMS_4',
            borderTop: 'solid',
            attributeConfig: '{"controlType":"TextEditor"}',
            formatter:
              'function(title,value,options,templateData,target){return window.hiprintFuns.GetAttributeValue(options, value)}',
            borderLeft: 'solid',
            top: 90,
            field: 'WMS_Inbound_H.No',
            hideTitle: true,
            left: 105,
            width: 70,
            widthHeightSync: false,
            vCenter: 108.77272519198328,
            height: 20
          }
        },
        {
          printElementType: {
            title: '单据编号',
            type: 'text'
          },
          options: {
            hCenter: 173.10295194738046,
            bottom: 186.10295194738046,
            coordinateSync: false,
            textContentVerticalAlign: 'middle',
            right: 349.1029425228342,
            title: '单据编号',
            qrCodeLevel: 0,
            qid: 'WMS_13',
            borderTop: 'solid',
            attributeConfig: '{"controlType":"TextEditor"}',
            formatter:
              'function(title,value,options,templateData,target){return window.hiprintFuns.GetAttributeValue(options, value)}',
            borderLeft: 'solid',
            top: 90,
            field: 'WMS_Inbound_H.No',
            hideTitle: true,
            left: 372,
            width: 60,
            widthHeightSync: false,
            vCenter: 319.1029425228342,
            height: 26
          }
        },
        {
          printElementType: {
            title: '单据编号',
            type: 'text'
          },
          options: {
            hCenter: 175.37844130572145,
            bottom: 188.37844130572145,
            coordinateSync: false,
            textContentVerticalAlign: 'middle',
            right: 414.8196298935833,
            title: '单据编号',
            qrCodeLevel: 0,
            qid: 'WMS_14',
            borderTop: 'solid',
            attributeConfig: '{"controlType":"TextEditor"}',
            formatter:
              'function(title,value,options,templateData,target){return window.hiprintFuns.GetAttributeValue(options, value)}',
            borderLeft: 'solid',
            top: 90,
            field: 'WMS_Inbound_H.No',
            hideTitle: true,
            left: 432,
            width: 60,
            widthHeightSync: false,
            vCenter: 384.8196298935833,
            height: 26
          }
        },
        {
          printElementType: {
            title: '单据编号',
            type: 'text'
          },
          options: {
            hCenter: 177.8676524442784,
            bottom: 190.8676524442784,
            coordinateSync: false,
            textContentVerticalAlign: 'middle',
            right: 490.05879794850057,
            title: '单据编号',
            qrCodeLevel: 0,
            qid: 'WMS_15',
            borderTop: 'solid',
            attributeConfig: '{"controlType":"TextEditor"}',
            formatter:
              'function(title,value,options,templateData,target){return window.hiprintFuns.GetAttributeValue(options, value)}',
            borderLeft: 'solid',
            top: 90,
            field: 'WMS_Inbound_H.No',
            hideTitle: true,
            left: 492,
            borderRight: 'solid',
            width: 60,
            widthHeightSync: false,
            vCenter: 460.05879794850057,
            height: 26
          }
        },
        {
          printElementType: {
            title: '文本',
            type: 'text'
          },
          options: {
            hCenter: 84.72727688876063,
            textAlign: 'center',
            bottom: 94.72727688876063,
            coordinateSync: false,
            textContentVerticalAlign: 'middle',
            right: 75,
            title: '运输方式',
            qrCodeLevel: 0,
            borderTop: 'solid',
            borderLeft: 'solid',
            top: 90,
            left: 45,
            width: 60,
            widthHeightSync: false,
            vCenter: 44.99999999999999,
            height: 20
          }
        },
        {
          printElementType: {
            title: '单据编号',
            type: 'text'
          },
          options: {
            hCenter: 69.99999999999997,
            bottom: 79.99999999999997,
            coordinateSync: false,
            textContentVerticalAlign: 'middle',
            right: 145.20454753528938,
            title: '单据编号',
            qrCodeLevel: 0,
            qid: 'WMS_5',
            borderTop: 'solid',
            attributeConfig: '{"controlType":"TextEditor"}',
            formatter:
              'function(title,value,options,templateData,target){return window.hiprintFuns.GetAttributeValue(options, value)}',
            borderLeft: 'solid',
            top: 109.5,
            field: 'WMS_Inbound_H.No',
            hideTitle: true,
            left: 105,
            width: 70,
            widthHeightSync: false,
            vCenter: 110.20454753528938,
            height: 20
          }
        },
        {
          printElementType: {
            title: '文本',
            type: 'text'
          },
          options: {
            hCenter: 5.840915333140984,
            textAlign: 'center',
            bottom: 15.840915333140984,
            coordinateSync: false,
            textContentVerticalAlign: 'middle',
            right: 50.79545454545455,
            title: '清算卡号',
            qrCodeLevel: 0,
            borderTop: 'solid',
            borderLeft: 'solid',
            top: 109.5,
            left: 45,
            width: 60,
            widthHeightSync: false,
            vCenter: 20.795454545454547,
            height: 20
          }
        },
        {
          printElementType: {
            title: '文本',
            type: 'text'
          },
          options: {
            hCenter: 110.50000264094423,
            textAlign: 'center',
            bottom: 120.50000264094423,
            coordinateSync: false,
            textContentVerticalAlign: 'middle',
            right: 286.84612567608167,
            title: '到厂数量',
            qrCodeLevel: 0,
            borderTop: 'solid',
            borderLeft: 'solid',
            top: 115.5,
            left: 223.5,
            width: 90,
            widthHeightSync: false,
            vCenter: 241.8461256760817,
            height: 20
          }
        },
        {
          printElementType: {
            title: '文本',
            type: 'text'
          },
          options: {
            hCenter: 65.89706420898435,
            textAlign: 'center',
            bottom: 75.89706420898435,
            coordinateSync: false,
            textContentVerticalAlign: 'middle',
            right: 203.470593620749,
            title: '实收数',
            qrCodeLevel: 0,
            borderTop: 'solid',
            borderLeft: 'solid',
            top: 115.5,
            left: 312,
            width: 90,
            widthHeightSync: false,
            vCenter: 173.470593620749,
            height: 20
          }
        },
        {
          printElementType: {
            title: '文本',
            type: 'text'
          },
          options: {
            hCenter: 110.50000264094423,
            textAlign: 'center',
            bottom: 120.50000264094423,
            coordinateSync: false,
            textContentVerticalAlign: 'middle',
            right: 193.9999859149639,
            title: '单位',
            qrCodeLevel: 0,
            borderTop: 'solid',
            borderLeft: 'solid',
            top: 115.5,
            left: 174,
            width: 50,
            widthHeightSync: false,
            vCenter: 168.9999859149639,
            height: 20
          }
        },
        {
          printElementType: {
            title: '文本',
            type: 'text'
          },
          options: {
            hCenter: 159.64706420898432,
            textAlign: 'center',
            bottom: 169.64706420898432,
            coordinateSync: false,
            textContentVerticalAlign: 'middle',
            right: 517.3676255170035,
            title: '单价',
            qrCodeLevel: 0,
            borderTop: 'solid',
            borderLeft: 'solid',
            top: 115.5,
            left: 400.5,
            width: 60,
            widthHeightSync: false,
            vCenter: 487.36762551700355,
            height: 20
          }
        },
        {
          printElementType: {
            title: '文本',
            type: 'text'
          },
          options: {
            hCenter: 110.50000264094423,
            textAlign: 'center',
            bottom: 120.50000264094423,
            coordinateSync: false,
            textContentVerticalAlign: 'middle',
            right: 490.38461538461524,
            title: '总金额',
            qrCodeLevel: 0,
            borderTop: 'solid',
            borderLeft: 'solid',
            top: 115.5,
            left: 460.5,
            borderRight: 'solid',
            width: 91.5,
            widthHeightSync: false,
            vCenter: 460.38461538461524,
            height: 20
          }
        },
        {
          printElementType: {
            title: '单据编号',
            type: 'text'
          },
          options: {
            hCenter: 87.3863636363636,
            bottom: 97.3863636363636,
            coordinateSync: false,
            textContentVerticalAlign: 'middle',
            right: 143.77272519198328,
            title: '单据编号',
            qrCodeLevel: 0,
            qid: 'WMS_6',
            borderTop: 'solid',
            attributeConfig: '{"controlType":"TextEditor"}',
            formatter:
              'function(title,value,options,templateData,target){return window.hiprintFuns.GetAttributeValue(options, value)}',
            borderLeft: 'solid',
            top: 129,
            field: 'WMS_Inbound_H.No',
            hideTitle: true,
            left: 105,
            width: 70,
            widthHeightSync: false,
            vCenter: 108.77272519198328,
            height: 20
          }
        },
        {
          printElementType: {
            title: '文本',
            type: 'text'
          },
          options: {
            hCenter: 84.72727688876063,
            textAlign: 'center',
            bottom: 94.72727688876063,
            coordinateSync: false,
            textContentVerticalAlign: 'middle',
            right: 75,
            title: '付款金额',
            qrCodeLevel: 0,
            borderTop: 'solid',
            borderLeft: 'solid',
            top: 129,
            left: 45,
            width: 60,
            widthHeightSync: false,
            vCenter: 44.99999999999999,
            height: 20
          }
        },
        {
          printElementType: {
            title: '单据编号',
            type: 'text'
          },
          options: {
            hCenter: 132.42307252150314,
            bottom: 145.42307252150314,
            coordinateSync: false,
            textContentVerticalAlign: 'middle',
            right: 263.9615102914663,
            title: '单据编号',
            qrCodeLevel: 0,
            qid: 'WMS_18',
            borderTop: 'solid',
            attributeConfig: '{"controlType":"TextEditor"}',
            formatter:
              'function(title,value,options,templateData,target){return window.hiprintFuns.GetAttributeValue(options, value)}',
            borderLeft: 'solid',
            top: 135,
            field: 'WMS_Inbound_H.No',
            hideTitle: true,
            left: 223.5,
            width: 90,
            widthHeightSync: false,
            vCenter: 228.96151029146634,
            height: 26
          }
        },
        {
          printElementType: {
            title: '单据编号',
            type: 'text'
          },
          options: {
            hCenter: 134.76470049689794,
            bottom: 144.76470049689794,
            coordinateSync: false,
            textContentVerticalAlign: 'middle',
            right: 259.7058890847598,
            title: '单据编号',
            qrCodeLevel: 0,
            qid: 'WMS_16',
            borderTop: 'solid',
            attributeConfig: '{"controlType":"TextEditor"}',
            formatter:
              'function(title,value,options,templateData,target){return window.hiprintFuns.GetAttributeValue(options, value)}',
            borderLeft: 'solid',
            top: 135,
            field: 'WMS_Inbound_H.No',
            hideTitle: true,
            left: 174,
            width: 50,
            widthHeightSync: false,
            vCenter: 224.7058890847598,
            height: 26
          }
        },
        {
          printElementType: {
            title: '单据编号',
            type: 'text'
          },
          options: {
            hCenter: 132.9999955984262,
            bottom: 145.9999955984262,
            coordinateSync: false,
            textContentVerticalAlign: 'middle',
            right: 347.65383206881006,
            title: '单据编号',
            qrCodeLevel: 0,
            qid: 'WMS_17',
            borderTop: 'solid',
            attributeConfig: '{"controlType":"TextEditor"}',
            formatter:
              'function(title,value,options,templateData,target){return window.hiprintFuns.GetAttributeValue(options, value)}',
            borderLeft: 'solid',
            top: 135,
            field: 'WMS_Inbound_H.No',
            hideTitle: true,
            left: 312,
            width: 90,
            widthHeightSync: false,
            vCenter: 317.65383206881006,
            height: 26
          }
        },
        {
          printElementType: {
            title: '单据编号',
            type: 'text'
          },
          options: {
            hCenter: 133.98077187171347,
            bottom: 146.98077187171347,
            coordinateSync: false,
            textContentVerticalAlign: 'middle',
            right: 429.2884474534254,
            title: '单据编号',
            qrCodeLevel: 0,
            qid: 'WMS_20',
            borderTop: 'solid',
            attributeConfig: '{"controlType":"TextEditor"}',
            formatter:
              'function(title,value,options,templateData,target){return window.hiprintFuns.GetAttributeValue(options, value)}',
            borderLeft: 'solid',
            top: 135,
            field: 'WMS_Inbound_H.No',
            hideTitle: true,
            left: 400.5,
            width: 60,
            widthHeightSync: false,
            vCenter: 399.2884474534254,
            height: 26
          }
        },
        {
          printElementType: {
            title: '单据编号',
            type: 'text'
          },
          options: {
            hCenter: 132.9999955984262,
            bottom: 145.9999955984262,
            coordinateSync: false,
            textContentVerticalAlign: 'middle',
            right: 490.84611159104554,
            title: '单据编号',
            qrCodeLevel: 0,
            qid: 'WMS_21',
            borderTop: 'solid',
            attributeConfig: '{"controlType":"TextEditor"}',
            formatter:
              'function(title,value,options,templateData,target){return window.hiprintFuns.GetAttributeValue(options, value)}',
            borderLeft: 'solid',
            top: 135,
            field: 'WMS_Inbound_H.No',
            hideTitle: true,
            left: 460.5,
            borderRight: 'solid',
            width: 91.5,
            widthHeightSync: false,
            vCenter: 460.84611159104554,
            height: 26
          }
        },
        {
          printElementType: {
            title: '单据编号',
            type: 'text'
          },
          options: {
            hCenter: 87.3863636363636,
            bottom: 97.3863636363636,
            coordinateSync: false,
            textContentVerticalAlign: 'middle',
            right: 143.77272519198328,
            title: '单据编号',
            qrCodeLevel: 0,
            qid: 'WMS_7',
            borderTop: 'solid',
            attributeConfig: '{"controlType":"TextEditor"}',
            formatter:
              'function(title,value,options,templateData,target){return window.hiprintFuns.GetAttributeValue(options, value)}',
            borderLeft: 'solid',
            top: 148.5,
            field: 'WMS_Inbound_H.No',
            hideTitle: true,
            left: 105,
            width: 70,
            widthHeightSync: false,
            vCenter: 108.77272519198328,
            height: 20
          }
        },
        {
          printElementType: {
            title: '文本',
            type: 'text'
          },
          options: {
            hCenter: 84.72727688876063,
            textAlign: 'center',
            bottom: 94.72727688876063,
            coordinateSync: false,
            textContentVerticalAlign: 'middle',
            right: 75,
            title: '签付日期',
            qrCodeLevel: 0,
            borderTop: 'solid',
            borderLeft: 'solid',
            top: 148.5,
            left: 45,
            width: 60,
            widthHeightSync: false,
            vCenter: 44.99999999999999,
            height: 20
          }
        },
        {
          printElementType: {
            title: '文本',
            type: 'text'
          },
          options: {
            hCenter: 110.50000264094423,
            textAlign: 'center',
            bottom: 120.50000264094423,
            coordinateSync: false,
            textContentVerticalAlign: 'middle',
            right: 286.84612567608167,
            title: '化验编号',
            qrCodeLevel: 0,
            borderTop: 'solid',
            borderLeft: 'solid',
            top: 160.5,
            left: 174,
            width: 90,
            widthHeightSync: false,
            vCenter: 241.8461256760817,
            height: 20
          }
        },
        {
          printElementType: {
            title: '单据编号',
            type: 'text'
          },
          options: {
            hCenter: 161.90384527353137,
            bottom: 174.90384527353137,
            coordinateSync: false,
            right: 324.8653705303485,
            title: '备注',
            qrCodeLevel: 0,
            qid: 'WMS_22',
            borderTop: 'solid',
            attributeConfig: '{"controlType":"TextEditor"}',
            formatter:
              'function(title,value,options,templateData,target){return window.hiprintFuns.GetAttributeValue(options, value)}',
            borderLeft: 'solid',
            top: 160.5,
            field: 'WMS_Inbound_H.Notes',
            left: 264,
            borderRight: 'solid',
            width: 288,
            widthHeightSync: false,
            vCenter: 279.8653705303485,
            borderBottom: 'solid',
            height: 47
          }
        },
        {
          printElementType: {
            title: '单据编号',
            type: 'text'
          },
          options: {
            hCenter: 69.99999999999997,
            bottom: 79.99999999999997,
            coordinateSync: false,
            textContentVerticalAlign: 'middle',
            right: 145.20454753528938,
            title: '单据编号',
            qrCodeLevel: 0,
            qid: 'WMS_8',
            borderTop: 'solid',
            attributeConfig: '{"controlType":"TextEditor"}',
            formatter:
              'function(title,value,options,templateData,target){return window.hiprintFuns.GetAttributeValue(options, value)}',
            borderLeft: 'solid',
            top: 168,
            field: 'WMS_Inbound_H.No',
            hideTitle: true,
            left: 105,
            width: 70,
            widthHeightSync: false,
            vCenter: 110.20454753528938,
            height: 20
          }
        },
        {
          printElementType: {
            title: '文本',
            type: 'text'
          },
          options: {
            hCenter: 5.840915333140984,
            textAlign: 'center',
            bottom: 15.840915333140984,
            coordinateSync: false,
            textContentVerticalAlign: 'middle',
            right: 50.79545454545455,
            title: '技术条件',
            qrCodeLevel: 0,
            borderTop: 'solid',
            borderLeft: 'solid',
            top: 168,
            left: 45,
            width: 60,
            widthHeightSync: false,
            vCenter: 20.795454545454547,
            height: 20
          }
        },
        {
          printElementType: {
            title: '单据编号',
            type: 'text'
          },
          options: {
            hCenter: 132.42307252150314,
            bottom: 145.42307252150314,
            coordinateSync: false,
            textContentVerticalAlign: 'middle',
            right: 263.9615102914663,
            title: '单据编号',
            qrCodeLevel: 0,
            qid: 'WMS_21',
            borderTop: 'solid',
            attributeConfig: '{"controlType":"TextEditor"}',
            formatter:
              'function(title,value,options,templateData,target){return window.hiprintFuns.GetAttributeValue(options, value)}',
            borderLeft: 'solid',
            top: 180,
            field: 'WMS_Inbound_H.No',
            hideTitle: true,
            left: 174,
            width: 90,
            widthHeightSync: false,
            vCenter: 228.96151029146634,
            borderBottom: 'solid',
            height: 28
          }
        },
        {
          printElementType: {
            title: '单据编号',
            type: 'text'
          },
          options: {
            hCenter: 87.3863636363636,
            bottom: 97.3863636363636,
            coordinateSync: false,
            textContentVerticalAlign: 'middle',
            right: 143.77272519198328,
            title: '单据编号',
            qrCodeLevel: 0,
            qid: 'WMS_9',
            borderTop: 'solid',
            attributeConfig: '{"controlType":"TextEditor"}',
            formatter:
              'function(title,value,options,templateData,target){return window.hiprintFuns.GetAttributeValue(options, value)}',
            borderLeft: 'solid',
            top: 187.5,
            field: 'WMS_Inbound_H.No',
            hideTitle: true,
            left: 105,
            width: 70,
            widthHeightSync: false,
            vCenter: 108.77272519198328,
            borderBottom: 'solid',
            height: 20
          }
        },
        {
          printElementType: {
            title: '文本',
            type: 'text'
          },
          options: {
            hCenter: 84.72727688876063,
            textAlign: 'center',
            bottom: 94.72727688876063,
            coordinateSync: false,
            textContentVerticalAlign: 'middle',
            right: 75,
            title: '炉批号',
            qrCodeLevel: 0,
            borderTop: 'solid',
            borderLeft: 'solid',
            top: 187.5,
            left: 45,
            width: 60,
            widthHeightSync: false,
            vCenter: 44.99999999999999,
            borderBottom: 'solid',
            height: 20
          }
        },
        {
          printElementType: {
            title: '创建人',
            type: 'text'
          },
          options: {
            hCenter: 218.1923103332519,
            bottom: 225.6923103332519,
            coordinateSync: false,
            textContentVerticalAlign: 'middle',
            right: 165.4230734018179,
            title: '制单',
            qrCodeLevel: 0,
            qid: 'WMS_23',
            attributeConfig: '{"controlType":"Dict","itemKey":"Operator"}',
            formatter:
              'function(title,value,options,templateData,target){return window.hiprintFuns.GetAttributeValue(options, value)}',
            top: 211.5,
            field: 'WMS_Inbound_H.Creator',
            left: 447,
            width: 90,
            widthHeightSync: false,
            vCenter: 115.4230734018179,
            height: 15
          }
        },
        {
          printElementType: {
            title: '创建人',
            type: 'text'
          },
          options: {
            hCenter: 227.07692219660828,
            bottom: 234.57692219660828,
            coordinateSync: false,
            textContentVerticalAlign: 'middle',
            right: 450.4614962064302,
            title: '保管员',
            qrCodeLevel: 0,
            qid: 'WMS_24',
            attributeConfig: '{"controlType":"Dict","itemKey":"Operator"}',
            formatter:
              'function(title,value,options,templateData,target){return window.hiprintFuns.GetAttributeValue(options, value)}',
            top: 211.5,
            field: 'WMS_Inbound_H.Creator',
            left: 349.125,
            width: 90,
            widthHeightSync: false,
            vCenter: 405.4614962064302,
            height: 15
          }
        },
        {
          printElementType: {
            title: '创建人',
            type: 'text'
          },
          options: {
            hCenter: 226.4999991196852,
            bottom: 233.9999991196852,
            coordinateSync: false,
            textContentVerticalAlign: 'middle',
            right: 360.4614962064302,
            title: '会计',
            qrCodeLevel: 0,
            qid: 'WMS_25',
            attributeConfig: '{"controlType":"Dict","itemKey":"Operator"}',
            formatter:
              'function(title,value,options,templateData,target){return window.hiprintFuns.GetAttributeValue(options, value)}',
            top: 211.5,
            field: 'WMS_Inbound_H.Creator',
            left: 251.25,
            width: 90,
            widthHeightSync: false,
            vCenter: 315.4614962064302,
            height: 15
          }
        },
        {
          printElementType: {
            title: '创建人',
            type: 'text'
          },
          options: {
            hCenter: 226.4999991196852,
            bottom: 233.9999991196852,
            coordinateSync: false,
            textContentVerticalAlign: 'middle',
            right: 262.96149620643024,
            title: '检验',
            qrCodeLevel: 0,
            qid: 'WMS_26',
            attributeConfig: '{"controlType":"Dict","itemKey":"Operator"}',
            formatter:
              'function(title,value,options,templateData,target){return window.hiprintFuns.GetAttributeValue(options, value)}',
            top: 211.5,
            field: 'WMS_Inbound_H.Creator',
            left: 153.375,
            width: 90,
            widthHeightSync: false,
            vCenter: 217.96149620643024,
            height: 15
          }
        },
        {
          printElementType: {
            title: '创建人',
            type: 'text'
          },
          options: {
            hCenter: 226.15384175227234,
            bottom: 233.65384175227234,
            coordinateSync: false,
            textContentVerticalAlign: 'middle',
            right: 145.3846153846154,
            title: '单位主管',
            qrCodeLevel: 0,
            qid: 'WMS_27',
            attributeConfig: '{"controlType":"Dict","itemKey":"Operator"}',
            formatter:
              'function(title,value,options,templateData,target){return window.hiprintFuns.GetAttributeValue(options, value)}',
            top: 211.5,
            field: 'WMS_Inbound_H.Creator',
            left: 55.5,
            width: 90,
            widthHeightSync: false,
            vCenter: 100.38461538461539,
            height: 15
          }
        }
      ],
      panelLayoutOptions: {},
      paperFooter: 841.8897637795277,
      paperNumberContinue: true,
      name: 1,
      width: 210,
      index: 0,
      height: 297
    }
  ]
}
// 条码打印模板-批量多个
const barcodePanel = {
  panels: [
    {
      index: 0,
      paperType: 'A4',
      height: 297,
      width: 210,
      paperHeader: 63,
      paperFooter: 780,
      printElements: [
        {
          options: {
            left: 5,
            top: 5,
            height: 23,
            width: 72,
            field: 'barcode',
            testData: '1234556',
            textType: 'barcode'
          },
          printElementType: { title: '文本', type: 'text' }
        },
        {
          options: { left: 5, top: 40, height: 13, width: 93, field: 'name', hideTitle: '1' },
          printElementType: { title: '文本', type: 'text' }
        }
      ],
      paperNumberLeft: 565,
      paperNumberTop: 819,
      paperNumberContinue: true,
      watermarkOptions: {},
      panelLayoutOptions: {}
    }
  ]
}
// 条码打印模板- 一行多组
const barcodePanelRows= {
	panels: [
		{
			index: 0,
			height: 297,
			width: 210,
			paperHeader: 0,
			paperFooter: 842,
			printElements: [
				{
					options: {
						left: 20,
						top: 20,
						height: 56,
						width: 555,
						field: "table",
						tableHeaderRepeat: "none",
						tableBorder: "noBorder",
						tableBodyRowBorder: "noBorder",
						tableBodyCellBorder: "noBorder",
						gridColumns: 2, //列组合重复次数
						gridColumnsGutter: 3, //列组合间距
						fields: [
							{
								text: "商品名称",
								field: "name",
							},
							{
								text: "商品编码",
								field: "code",
							},
						],
						columns: [
							[
								{
									title: "商品名称",
									field: "name",
									checked: true,
									renderFormatter:
										"function(value,row,index,options){return `商品名：${row.name || '测试商品名'}<br>条码：${row.barcode || '123456'}`}",
								},
								{
									title: "商品条码",
									field: "barcode",
									checked: true,
									tableTextType: "barcode",
								},
							],
						],
					},
					printElementType: {
						title: "表格",
						type: "table",
					},
				},
			],
			paperNumberLeft: 565.5,
			paperNumberTop: 819,
		},
	],
}
// 表格明细-自定义单元格模板
const tableDetailPanel1 = {
  panels: [
    {
      index: 0,
      name: 1,
      paperType: 'A4',
      height: 297,
      width: 210,
      paperHeader: 0,
      paperFooter: 841.8897637795277,
      printElements: [
        {
          options: {
            left: 37.5,
            top: 76.5,
            height: 60,
            width: 550,
            right: 587.5,
            bottom: 111.75,
            vCenter: 312.5,
            hCenter: 93.75,
            field: 'WMS_Inbound_D_Wares',
            coordinateSync: false,
            widthHeightSync: false,
            columns: [
              [
                {
                  width: 550,
                  title: '表格数据',
                  field: '',
                  checked: true,
                  columnId: '',
                  fixed: false,
                  rowspan: 1,
                  colspan: 1,
                  renderFormatter:
                    "function(value,row,index,options){\n    let rowTemplate = '';\n    rowTemplate += `\n        <div class='hipt-row hipt-mt-5'>\n            <div class='hipt-col-6 hipt-mb-5'>\n                <span class='title'>序号：</span>\n                <span class='info'>${row.Sequence}</span>\n            </div>\n            <div class='hipt-col-6 hipt-mb-5'>\n                <span class='title'>货品：</span>\n                <span class='info'>${row.WaresID}</span>\n            </div>\n            <div class='hipt-col-6 hipt-mb-5'>\n                <span class='title'>数量：</span>\n                <span class='info'>${row.Qty}</span>\n            </div>\n            <div class='hipt-col-6 hipt-mb-5'>\n                <span class='title'>单位：</span>\n                <span class='info'>${row.Unit}</span>\n            </div>\n            <div class='hipt-col-6 hipt-mb-5'>\n                <span class='title'>货品状态：</span>\n                <span class='info'>${row.WaresStatusID}</span>\n            </div>\n            <div class='hipt-col-6 hipt-mb-5'>\n                <span class='title'>生产厂家：</span>\n                <span class='info'>${row.Manufacturer}</span>\n            </div>\n            <div class='hipt-col-6 hipt-mb-5'>\n                <span class='title'>品牌：</span>\n                <span class='info'>${row.Brand}</span>\n            </div>\n     </div>\n      `;\n            return rowTemplate;\n}",

                  tableQRCodeLevel: 0,
                  tableSummaryTitle: true,
                  tableSummary: ''
                }
              ]
            ]
          },
          printElementType: {
            title: '空白表格',
            type: 'table',
            editable: true,
            columnDisplayEditable: true,
            columnDisplayIndexEditable: true,
            columnTitleEditable: true,
            columnResizable: true,
            columnAlignEditable: true,
            isEnableEditField: true,
            isEnableContextMenu: true,
            isEnableInsertRow: true,
            isEnableDeleteRow: true,
            isEnableInsertColumn: true,
            isEnableDeleteColumn: true,
            isEnableMergeCell: true
          }
        }
      ],
      paperNumberContinue: true,
      watermarkOptions: {},
      panelLayoutOptions: {}
    }
  ]
}
// 表格明细-自定义单元格模板【使用来源数据print-data.js：tableDetailDataTest】
const tableDetailPanel2 = {
  panels: [
    {
      index: 0,
      name: 1,
      paperType: 'A4',
      height: 297,
      width: 210,
      paperHeader: 63,
      paperFooter: 780,
      printElements: [
        {
          options: {
            left: 246,
            top: 6,
            height: 25.5,
            width: 120,
            title: '入库单',
            coordinateSync: false,
            widthHeightSync: false,
            fontSize: 21,
            fontWeight: 'bold',
            letterSpacing: 7.5,
            textAlign: 'center',
            qrCodeLevel: 0,
            field: 'title',
            textContentVerticalAlign: 'middle'
          },
          printElementType: {
            title: '文本',
            type: 'text'
          }
        },
        {
          options: {
            left: 196.5,
            top: 33,
            height: 9,
            width: 219,
            borderWidth: 0.75
          },
          printElementType: {
            title: '横线',
            type: 'hline'
          }
        },
        {
          options: {
            left: 18,
            top: 46.5,
            height: 20,
            width: 210,
            title: '供应单位：',
            field: 'WMS_Inbound_H.No',
            coordinateSync: false,
            widthHeightSync: false,
            fontSize: 10.5,
            qrCodeLevel: 0,
            right: 223.5,
            bottom: 66.5,
            vCenter: 118.5,
            hCenter: 56.5,
            lineHeight: 19.5
          },
          printElementType: {
            title: '文本',
            type: 'text'
          }
        },
        {
          options: {
            left: 10.5,
            top: 64.5,
            height: 200,
            width: 576,
            right: 582,
            bottom: 264.5,
            vCenter: 296.25,
            hCenter: 164.5,
            field: 'WMS_Inbound_D_Wares',
            coordinateSync: false,
            widthHeightSync: false,
            tableHeaderRepeat: 'none',
            maxRows: 1,
            tableBorder: 'noBorder',
            tableHeaderBorder: 'leftBorder',
            tableHeaderCellBorder: 'noBorder',
            tableBodyRowBorder: 'noBorder',
            tableBodyCellBorder: 'noBorder',
            tableFooterBorder: 'noBorder',
            tableFooterCellBorder: 'noBorder',
            fontSize: 11.25,
            columns: [
              [
                {
                  width: 576,
                  title: '表格数据',
                  field: '',
                  checked: true,
                  columnId: '',
                  fixed: false,
                  rowspan: 1,
                  colspan: 1,
                  renderFormatter:
                    'function(value,row,index,options){\n    let rowTemplate = \'\';\n    rowTemplate += `\n        <div class="hipt-row hipt-brt hipt-brl hipt-mt-5">\n      <div class="hipt-col-6">\n        <div class="hipt-row">\n          <div class="hipt-col-12">\n            <span class="hipt-desc hipt-height-20">合同号</span>\n          </div>\n          <div class="hipt-col-12">\n            <span class="hipt-desc hipt-height-20">${row.OID || ""}</span>\n          </div>\n        </div>\n        <div class="hipt-row">\n          <div class="hipt-col-12">\n            <span class="hipt-desc hipt-height-20">运输方式</span>\n          </div>\n          <div class="hipt-col-12">\n            <span class="hipt-desc hipt-height-20"></span>\n          </div>\n        </div>\n        <div class="hipt-row">\n          <div class="hipt-col-12">\n            <span class="hipt-desc hipt-height-20">清算卡号</span>\n          </div>\n          <div class="hipt-col-12">\n            <span class="hipt-desc hipt-height-20"></span>\n          </div>\n        </div>\n        <div class="hipt-row">\n          <div class="hipt-col-12">\n            <span class="hipt-desc hipt-height-20">付款金额</span>\n          </div>\n          <div class="hipt-col-12">\n            <span class="hipt-desc hipt-height-20"></span>\n          </div>\n        </div>\n        <div class="hipt-row">\n          <div class="hipt-col-12">\n            <span class="hipt-desc hipt-height-20">签付日期</span>\n          </div>\n          <div class="hipt-col-12">\n            <span class="hipt-desc hipt-height-20"></span>\n          </div>\n        </div>\n        <div class="hipt-row">\n          <div class="hipt-col-12">\n            <span class="hipt-desc hipt-height-20">技术条件</span>\n          </div>\n          <div class="hipt-col-12">\n            <span class="hipt-desc hipt-height-20"></span>\n          </div>\n        </div>\n        <div class="hipt-row">\n          <div class="hipt-col-12">\n            <span class="hipt-desc hipt-height-20">炉批号</span>\n          </div>\n          <div class="hipt-col-12">\n            <span class="hipt-desc hipt-height-20"></span>\n          </div>\n        </div>\n      </div>\n      <div class="hipt-col-18">\n        <div class="hipt-row">\n          <div class="hipt-col-4 hipt-content">\n            <span class="title hipt-height-20">x制对象</span>\n            <span class="info hipt-height-30"></span>\n          </div>\n          <div class="hipt-col-4 hipt-content">\n            <span class="title hipt-height-20">产品图号</span>\n            <span class="info hipt-height-30"></span>\n          </div>\n          <div class="hipt-col-4 hipt-content">\n            <span class="title hipt-height-20">名称</span>\n            <span class="info hipt-height-30"></span>\n          </div>\n          <div class="hipt-col-4 hipt-content">\n            <span class="title hipt-height-20">材料牌号</span>\n            <span class="info hipt-height-30"></span>\n          </div>\n          <div class="hipt-col-4 hipt-content">\n            <span class="title hipt-height-20">规格</span>\n            <span class="info hipt-height-30"></span>\n          </div>\n          <div class="hipt-col-4 hipt-content">\n            <span class="title hipt-height-20">状态</span>\n            <span class="info hipt-height-30"></span>\n          </div>\n        </div>\n        <div class="hipt-row">\n          <div class="hipt-col-2 hipt-content">\n            <span class="title hipt-height-20">单位</span>\n            <span class="info hipt-height-30"></span>\n          </div>\n          <div class="hipt-col-6 hipt-content">\n            <span class="title hipt-height-20">到场数量</span>\n            <span class="info hipt-height-30"></span>\n          </div>\n          <div class="hipt-col-6 hipt-content">\n            <span class="title hipt-height-20">实收款</span>\n            <span class="info hipt-height-30"></span>\n          </div>\n          <div class="hipt-col-4 hipt-content">\n            <span class="title hipt-height-20">单价</span>\n            <span class="info hipt-height-30"></span>\n          </div>\n          <div class="hipt-col-6 hipt-content">\n            <span class="title hipt-height-20">总金额</span>\n            <span class="info hipt-height-30"></span>\n          </div>\n        </div>\n        <div class="hipt-row">\n          <div class="hipt-col-4 hipt-content">\n            <span class="title hipt-height-20">化验编号</span>\n            <span class="info hipt-height-30"></span>\n          </div>\n          <div class="hipt-col-20 hipt-content">\n            <span class="note">备注：</span>\n          </div>\n        </div>\n      </div>\n    </div>\n      `;\n            return rowTemplate;\n}',
                  tableQRCodeLevel: 0,
                  tableSummaryTitle: true,
                  tableSummary: ''
                }
              ]
            ]
          },
          printElementType: {
            title: '空白表格',
            type: 'table',
            editable: true,
            columnDisplayEditable: true,
            columnDisplayIndexEditable: true,
            columnTitleEditable: true,
            columnResizable: true,
            columnAlignEditable: true,
            isEnableEditField: true,
            isEnableContextMenu: true,
            isEnableInsertRow: true,
            isEnableDeleteRow: true,
            isEnableInsertColumn: true,
            isEnableDeleteColumn: true,
            isEnableMergeCell: true
          }
        }
      ],
      paperNumberLeft: 565,
      paperNumberTop: 819,
      paperNumberContinue: true,
      watermarkOptions: {},
      panelLayoutOptions: {}
    }
  ]
}

export default tableDetailPanel2
